<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
  window.alert(window.location.href)
  window.location.href = "https://www.bilibili.com";
</script>
</body>
</html>